package cn.stylefeng.guns.modular.basic.service;

import java.io.IOException;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicDriver;
import cn.stylefeng.guns.modular.basic.model.params.BasicDriverParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicDriverResult;
import cn.stylefeng.guns.sys.modular.system.model.UserDto;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

/**
 * <p>
 * 驾驶员信息表 服务类
 * </p>
 *
 * @author hu
 * @since 2019-07-04
 */
public interface BasicDriverService extends IService<BasicDriver> {

    /**
     * 新增
     *
     * @author hu
     * @Date 2019-07-04
     */
    void add(BasicDriverParam param);

    /**
     * 删除
     *
     * @author hu
     * @Date 2019-07-04
     */
    void delete(BasicDriverParam param);

    /**
     * 更新
     *
     * @author hu
     * @Date 2019-07-04
     */
    void update(BasicDriverParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author hu
     * @Date 2019-07-04
     */
    BasicDriverResult findBySpec(BasicDriverParam param, Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author hu
     * @Date 2019-07-04
     */
    List<BasicDriverResult> findListBySpec(BasicDriverParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author hu
     * @Date 2019-07-04
     */
     LayuiPageInfo findPageBySpec(BasicDriverParam param, String condition, Long operateId);

	ResponseData getExceldata(MultipartFile file, BasicDriverParam basicDriverParam, ResponseData data) throws IOException;
	
	boolean saveBatchList(List<BasicDriverParam> list);

	Integer addReturnId(BasicDriverParam basicDriverParam);

	ResponseData getExceldata2(MultipartFile file, UserDto user, ResponseData data) throws IOException;

    BasicDriverResult synchronization(BasicDriverParam basicDriverParam);

    BasicDriverResult findByName(String name, Long operateId);
}
